.class public Lcom/example/m6wmr/IntegralExchangeGift;
.super Landroid/app/Activity;
.source "IntegralExchangeGift.java"

# interfaces
.implements Lcom/wmr/Lstview/XListView$IXListViewListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/IntegralExchangeGift$MyAdapter;,
        Lcom/example/m6wmr/IntegralExchangeGift$MyHolder;,
        Lcom/example/m6wmr/IntegralExchangeGift$mOnclistener;
    }
.end annotation


# instance fields
.field private activityList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Landroid/app/Activity;",
            ">;"
        }
    .end annotation
.end field

.field private adapter:Lcom/example/m6wmr/IntegralExchangeGift$MyAdapter;

.field private allintegral:Ljava/lang/String;

.field private beans:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/IntegralExchangeBean;",
            ">;"
        }
    .end annotation
.end field

.field private closebtn:Landroid/widget/LinearLayout;

.field private contentValues:Landroid/content/ContentValues;

.field private context:Landroid/content/Context;

.field private contextView:Landroid/view/View;

.field private cursor:Landroid/database/Cursor;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private getJsonString:Ljava/lang/String;

.field private h:Landroid/os/Handler;

.field private im_gift:Landroid/widget/ImageView;

.field private imageLoader:LPlugclass/ImageLoader;

.field private is_loading:Z

.field private ll_integral_exchange_root:Landroid/widget/LinearLayout;

.field private m:Lmyapp/MyApp;

.field private mHandler:Landroid/os/Handler;

.field private openHelper:Ldbclass/DBOpenHelper;

.field private page:I

.field private pagesize:I

.field private savedInstanceState:Landroid/os/Bundle;

.field private tv_allintegral:Landroid/widget/TextView;

.field private tv_exchange_history:Landroid/widget/TextView;

.field private tv_gift_name:Landroid/widget/TextView;

.field private tv_go_exchange:Landroid/widget/TextView;

.field private tv_needintegral:Landroid/widget/TextView;

.field private tv_oldprice:Landroid/widget/TextView;

.field private waitLoginView:Landroid/view/View;

.field private xlv_integral_exchange:Lcom/wmr/Lstview/XListView;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 52
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 85
    const/4 v0, 0x1

    iput v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->page:I

    .line 86
    const/16 v0, 0xa

    iput v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->pagesize:I

    .line 88
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->is_loading:Z

    .line 93
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->mHandler:Landroid/os/Handler;

    .line 52
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/IntegralExchangeGift;)Ljava/util/List;
    .locals 1

    .prologue
    .line 90
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->beans:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/IntegralExchangeGift;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 56
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$10(Lcom/example/m6wmr/IntegralExchangeGift;)I
    .locals 1

    .prologue
    .line 86
    iget v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->pagesize:I

    return v0
.end method

.method static synthetic access$11(Lcom/example/m6wmr/IntegralExchangeGift;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 83
    iput-object p1, p0, Lcom/example/m6wmr/IntegralExchangeGift;->getJsonString:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$12(Lcom/example/m6wmr/IntegralExchangeGift;)I
    .locals 1

    .prologue
    .line 85
    iget v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->page:I

    return v0
.end method

.method static synthetic access$13(Lcom/example/m6wmr/IntegralExchangeGift;)V
    .locals 0

    .prologue
    .line 376
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift;->reflushData()V

    return-void
.end method

.method static synthetic access$14(Lcom/example/m6wmr/IntegralExchangeGift;)V
    .locals 0

    .prologue
    .line 688
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift;->onLoad()V

    return-void
.end method

.method static synthetic access$15(Lcom/example/m6wmr/IntegralExchangeGift;)V
    .locals 0

    .prologue
    .line 437
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift;->addData()V

    return-void
.end method

.method static synthetic access$2(Lcom/example/m6wmr/IntegralExchangeGift;)Lmyapp/MyApp;
    .locals 1

    .prologue
    .line 54
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->m:Lmyapp/MyApp;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/IntegralExchangeGift;)LPlugclass/ImageLoader;
    .locals 1

    .prologue
    .line 68
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->imageLoader:LPlugclass/ImageLoader;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6wmr/IntegralExchangeGift;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 82
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->allintegral:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/IntegralExchangeGift;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 83
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->getJsonString:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6wmr/IntegralExchangeGift;)Landroid/os/Handler;
    .locals 1

    .prologue
    .line 67
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->h:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$7(Lcom/example/m6wmr/IntegralExchangeGift;Lcom/example/m6wmr/IntegralExchangeGift$MyAdapter;)V
    .locals 0

    .prologue
    .line 91
    iput-object p1, p0, Lcom/example/m6wmr/IntegralExchangeGift;->adapter:Lcom/example/m6wmr/IntegralExchangeGift$MyAdapter;

    return-void
.end method

.method static synthetic access$8(Lcom/example/m6wmr/IntegralExchangeGift;)Lcom/wmr/Lstview/XListView;
    .locals 1

    .prologue
    .line 73
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->xlv_integral_exchange:Lcom/wmr/Lstview/XListView;

    return-object v0
.end method

.method static synthetic access$9(Lcom/example/m6wmr/IntegralExchangeGift;)Lcom/example/m6wmr/IntegralExchangeGift$MyAdapter;
    .locals 1

    .prologue
    .line 91
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->adapter:Lcom/example/m6wmr/IntegralExchangeGift$MyAdapter;

    return-object v0
.end method

.method private addData()V
    .locals 1

    .prologue
    .line 440
    new-instance v0, Lcom/example/m6wmr/IntegralExchangeGift$5;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/IntegralExchangeGift$5;-><init>(Lcom/example/m6wmr/IntegralExchangeGift;)V

    .line 485
    invoke-virtual {v0}, Lcom/example/m6wmr/IntegralExchangeGift$5;->start()V

    .line 488
    return-void
.end method

.method private getData()V
    .locals 3

    .prologue
    .line 496
    .line 497
    const-string v1, "userInfo"

    const/4 v2, 0x0

    .line 496
    invoke-virtual {p0, v1, v2}, Lcom/example/m6wmr/IntegralExchangeGift;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 498
    .local v0, "preferences":Landroid/content/SharedPreferences;
    const-string v1, "score"

    const-string v2, "0"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift;->allintegral:Ljava/lang/String;

    .line 501
    return-void
.end method

.method private gethttpData()V
    .locals 2

    .prologue
    .line 258
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/example/m6wmr/IntegralExchangeGift$2;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/IntegralExchangeGift$2;-><init>(Lcom/example/m6wmr/IntegralExchangeGift;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 294
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 297
    return-void
.end method

.method private initData()V
    .locals 2

    .prologue
    .line 361
    invoke-virtual {p0}, Lcom/example/m6wmr/IntegralExchangeGift;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lmyapp/MyApp;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->m:Lmyapp/MyApp;

    .line 362
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->m:Lmyapp/MyApp;

    invoke-virtual {v0}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->activityList:Ljava/util/ArrayList;

    .line 363
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->activityList:Ljava/util/ArrayList;

    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 364
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->savedInstanceState:Landroid/os/Bundle;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->savedInstanceState:Landroid/os/Bundle;

    .line 365
    iput-object p0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->context:Landroid/content/Context;

    .line 366
    new-instance v0, Landroid/content/ContentValues;

    invoke-direct {v0}, Landroid/content/ContentValues;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->contentValues:Landroid/content/ContentValues;

    .line 367
    new-instance v0, Ldbclass/DBOpenHelper;

    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift;->context:Landroid/content/Context;

    invoke-direct {v0, v1}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->openHelper:Ldbclass/DBOpenHelper;

    .line 368
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->openHelper:Ldbclass/DBOpenHelper;

    invoke-virtual {v0}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 369
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->openHelper:Ldbclass/DBOpenHelper;

    invoke-virtual {v0}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 370
    new-instance v0, LPlugclass/ImageLoader;

    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift;->context:Landroid/content/Context;

    invoke-direct {v0, v1}, LPlugclass/ImageLoader;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->imageLoader:LPlugclass/ImageLoader;

    .line 372
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->beans:Ljava/util/List;

    .line 374
    return-void
.end method

.method private initView()V
    .locals 2

    .prologue
    .line 336
    const v0, 0x7f0c0090

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->ll_integral_exchange_root:Landroid/widget/LinearLayout;

    .line 337
    const v0, 0x7f0c0001

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->closebtn:Landroid/widget/LinearLayout;

    .line 339
    const v0, 0x7f0c00c2

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/wmr/Lstview/XListView;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->xlv_integral_exchange:Lcom/wmr/Lstview/XListView;

    .line 340
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->xlv_integral_exchange:Lcom/wmr/Lstview/XListView;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/wmr/Lstview/XListView;->setPullLoadEnable(Z)V

    .line 341
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->xlv_integral_exchange:Lcom/wmr/Lstview/XListView;

    invoke-virtual {v0, p0}, Lcom/wmr/Lstview/XListView;->setXListViewListener(Lcom/wmr/Lstview/XListView$IXListViewListener;)V

    .line 343
    const v0, 0x7f0c00c0

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->tv_allintegral:Landroid/widget/TextView;

    .line 344
    const v0, 0x7f0c0257

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->im_gift:Landroid/widget/ImageView;

    .line 345
    const v0, 0x7f0c025a

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->tv_needintegral:Landroid/widget/TextView;

    .line 346
    const v0, 0x7f0c0259

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->tv_oldprice:Landroid/widget/TextView;

    .line 347
    const v0, 0x7f0c00c1

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->tv_exchange_history:Landroid/widget/TextView;

    .line 348
    const v0, 0x7f0c0258

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->tv_gift_name:Landroid/widget/TextView;

    .line 350
    const v0, 0x7f0c025b

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->tv_go_exchange:Landroid/widget/TextView;

    .line 354
    return-void
.end method

.method private islogin()V
    .locals 0

    .prologue
    .line 250
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift;->gethttpData()V

    .line 252
    return-void
.end method

.method private onClistener()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 518
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->closebtn:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/example/m6wmr/IntegralExchangeGift$mOnclistener;

    invoke-direct {v1, p0, v2}, Lcom/example/m6wmr/IntegralExchangeGift$mOnclistener;-><init>(Lcom/example/m6wmr/IntegralExchangeGift;Lcom/example/m6wmr/IntegralExchangeGift$mOnclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 519
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->tv_exchange_history:Landroid/widget/TextView;

    new-instance v1, Lcom/example/m6wmr/IntegralExchangeGift$mOnclistener;

    invoke-direct {v1, p0, v2}, Lcom/example/m6wmr/IntegralExchangeGift$mOnclistener;-><init>(Lcom/example/m6wmr/IntegralExchangeGift;Lcom/example/m6wmr/IntegralExchangeGift$mOnclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 521
    return-void
.end method

.method private onLoad()V
    .locals 2

    .prologue
    .line 689
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->xlv_integral_exchange:Lcom/wmr/Lstview/XListView;

    invoke-virtual {v0}, Lcom/wmr/Lstview/XListView;->stopRefresh()V

    .line 690
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->xlv_integral_exchange:Lcom/wmr/Lstview/XListView;

    invoke-virtual {v0}, Lcom/wmr/Lstview/XListView;->stopLoadMore()V

    .line 691
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->xlv_integral_exchange:Lcom/wmr/Lstview/XListView;

    invoke-virtual {p0}, Lcom/example/m6wmr/IntegralExchangeGift;->GetTime()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wmr/Lstview/XListView;->setRefreshTime(Ljava/lang/String;)V

    .line 692
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->is_loading:Z

    .line 693
    return-void
.end method

.method private reflushData()V
    .locals 1

    .prologue
    .line 379
    new-instance v0, Lcom/example/m6wmr/IntegralExchangeGift$4;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/IntegralExchangeGift$4;-><init>(Lcom/example/m6wmr/IntegralExchangeGift;)V

    .line 424
    invoke-virtual {v0}, Lcom/example/m6wmr/IntegralExchangeGift$4;->start()V

    .line 431
    return-void
.end method

.method private setData()V
    .locals 2

    .prologue
    .line 509
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->tv_allintegral:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift;->allintegral:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 512
    return-void
.end method


# virtual methods
.method public GetTime()Ljava/lang/String;
    .locals 3
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "SimpleDateFormat"
        }
    .end annotation

    .prologue
    .line 720
    new-instance v1, Ljava/text/SimpleDateFormat;

    .line 721
    const-string v2, "yyyy-MM-dd    hh:mm:ss"

    .line 720
    invoke-direct {v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 722
    .local v1, "sDateFormat":Ljava/text/SimpleDateFormat;
    new-instance v2, Ljava/util/Date;

    invoke-direct {v2}, Ljava/util/Date;-><init>()V

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v0

    .line 723
    .local v0, "date":Ljava/lang/String;
    return-object v0
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 1
    .param p1, "requestCode"    # I
    .param p2, "resultCode"    # I
    .param p3, "data"    # Landroid/content/Intent;

    .prologue
    .line 564
    invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V

    .line 566
    const/16 v0, 0x64

    if-ne p1, v0, :cond_0

    .line 567
    const/4 v0, 0x1

    if-ne p2, v0, :cond_0

    .line 569
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->savedInstanceState:Landroid/os/Bundle;

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/IntegralExchangeGift;->onCreate(Landroid/os/Bundle;)V

    .line 575
    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 99
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 100
    const v1, 0x7f03001e

    invoke-virtual {p0, v1}, Lcom/example/m6wmr/IntegralExchangeGift;->setContentView(I)V

    .line 102
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift;->initData()V

    .line 104
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift;->getData()V

    .line 106
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift;->initView()V

    .line 108
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift;->islogin()V

    .line 111
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift;->addData()V

    .line 113
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift;->setData()V

    .line 115
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift;->onClistener()V

    .line 117
    const/high16 v1, 0x7f0c0000

    invoke-virtual {p0, v1}, Lcom/example/m6wmr/IntegralExchangeGift;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 118
    .local v0, "top":Landroid/widget/LinearLayout;
    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift;->m:Lmyapp/MyApp;

    invoke-virtual {v1}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v1

    const-string v2, "1"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 119
    const v1, 0x7f070026

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 123
    :cond_0
    new-instance v1, Lcom/example/m6wmr/IntegralExchangeGift$1;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/IntegralExchangeGift$1;-><init>(Lcom/example/m6wmr/IntegralExchangeGift;)V

    iput-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift;->h:Landroid/os/Handler;

    .line 243
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 556
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 557
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 558
    return-void
.end method

.method public onLoadMore()V
    .locals 4

    .prologue
    .line 730
    iget-boolean v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->is_loading:Z

    if-nez v0, :cond_0

    .line 731
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->is_loading:Z

    .line 732
    iget v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->page:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->page:I

    .line 733
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/example/m6wmr/IntegralExchangeGift$7;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/IntegralExchangeGift$7;-><init>(Lcom/example/m6wmr/IntegralExchangeGift;)V

    .line 739
    const-wide/16 v2, 0x1f4

    .line 733
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 742
    :cond_0
    return-void
.end method

.method public onRefresh()V
    .locals 4

    .prologue
    const/4 v1, 0x1

    .line 699
    iget-boolean v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->is_loading:Z

    if-nez v0, :cond_0

    .line 700
    iput-boolean v1, p0, Lcom/example/m6wmr/IntegralExchangeGift;->is_loading:Z

    .line 701
    iput v1, p0, Lcom/example/m6wmr/IntegralExchangeGift;->page:I

    .line 704
    iget-object v0, p0, Lcom/example/m6wmr/IntegralExchangeGift;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/example/m6wmr/IntegralExchangeGift$6;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/IntegralExchangeGift$6;-><init>(Lcom/example/m6wmr/IntegralExchangeGift;)V

    .line 712
    const-wide/16 v2, 0x1f4

    .line 704
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 714
    :cond_0
    return-void
.end method

.method protected onStart()V
    .locals 0

    .prologue
    .line 547
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift;->getData()V

    .line 548
    invoke-direct {p0}, Lcom/example/m6wmr/IntegralExchangeGift;->setData()V

    .line 549
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 551
    return-void
.end method

.method public waitlogin()V
    .locals 4

    .prologue
    .line 305
    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift;->ll_integral_exchange_root:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 306
    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift;->waitLoginView:Landroid/view/View;

    if-nez v1, :cond_0

    .line 307
    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift;->context:Landroid/content/Context;

    const v2, 0x7f03009e

    .line 308
    const/4 v3, 0x0

    .line 307
    invoke-static {v1, v2, v3}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift;->waitLoginView:Landroid/view/View;

    .line 309
    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift;->waitLoginView:Landroid/view/View;

    .line 310
    const v2, 0x7f0c0301

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 309
    check-cast v0, Landroid/widget/TextView;

    .line 311
    .local v0, "waitlogin":Landroid/widget/TextView;
    new-instance v1, Lcom/example/m6wmr/IntegralExchangeGift$3;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/IntegralExchangeGift$3;-><init>(Lcom/example/m6wmr/IntegralExchangeGift;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 325
    .end local v0    # "waitlogin":Landroid/widget/TextView;
    :cond_0
    iget-object v1, p0, Lcom/example/m6wmr/IntegralExchangeGift;->ll_integral_exchange_root:Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/example/m6wmr/IntegralExchangeGift;->waitLoginView:Landroid/view/View;

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 328
    return-void
.end method
